package com.xunqi.ad.form;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Description:
 * @Created with IntelliJ IDEA.
 * @author: 夏沫止水
 * @create: 2020-04-29 16:06
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AdPlanForm {

    private Long id;

    @NotNull(message = "用户id不允许为空")
    private Long userId;

    @NotEmpty(message = "推广计划名称不允许为空")
    private String planName;

    private Date startDate;

    private Date endDate;
}
